package com.wisezone.workflow.dao.hibernate;

import java.util.List;
import com.wisezone.common.dao.impl.BaseHibernateDaoImpl;
import com.wisezone.workflow.bean.form.WfActivityInstanceForm;
import com.wisezone.workflow.bean.search.WfActivityInstanceSearch;
import com.wisezone.workflow.dao.WfActivityInstanceDao;
import com.wisezone.workflow.exception.WfDaoException;

/**
 * hiberante 活动实例实现类
 * @author tss 2009-09-05
 * 
 */
public class WfActivityInstanceDaoImpl extends BaseHibernateDaoImpl implements WfActivityInstanceDao {

    public WfActivityInstanceDaoImpl() {
        super();
    }
    
    
    /**
     * 根据流程实例Id 获得所有活动实例列表
     * @param processInstId
     * @return
     * @throws WfDaoException
     */
    public List<WfActivityInstanceForm> listByProcessInstId(Long processInstId) throws WfDaoException{
    
    	WfActivityInstanceSearch searchEntity = new WfActivityInstanceSearch();
    	searchEntity.setProcessInstId(processInstId);
    	List<WfActivityInstanceForm> list = this.listFormAll(searchEntity);
    	return list;
    }
      
    




  

    

}